package docking;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *
 * @author Robbie
 */
public class Boat implements Serializable {
    private int length;
    private int depth;
    private String name;
    private String info;
    private ArrayList<Reservation> reservationList;
    
    public Boat(String n_name, String n_info, int n_depth, int n_length)
    {
        length = n_length;
        depth = n_depth;
        name = n_name;
        info = n_info;
        reservationList = new ArrayList<Reservation>();
        
    }
    // get methods
    public int getLength()
    {
        return length;
    }
    
    public int getDepth()
    {
        return depth;
    }
    
    public String getName()
    {
          return name;
    }
    
    public String getInfo()
    {
        return info;
    }
    
    public String toString()
    {
        return name;
        
    }

    public ArrayList<Reservation> getReservations()
    {
        return reservationList;
    }
    
    public void addReservation(Reservation r)
    {
        reservationList.add(r);
    }
    
}